<template>
  <Tooltip content="复制" placement="top">
    <Icon class="options-item copy" type="ios-copy-outline" size="20" @click="clone" />
  </Tooltip>
</template>

<script setup name="Clone">
import useSelect from '@/hooks/select';
import { debounce } from 'lodash-es';

const { canvasEditor, isOne } = useSelect();
const clone = debounce(function () {
  canvasEditor.clone();
}, 300);
</script>
